package com.boby.homecamera.webserver.websocket

import org.java_websocket.WebSocket

class ClientWebSocket(val client: WebSocket) {
    fun send(message: String) {

        try {
            client.send(message)
        }catch (e: Exception){
            e.printStackTrace()
        }

    }
    fun close() {
        client.close()
    }
}